import request from '@/utils/request.js'

// 查询企业的部门别表
export function companyDepartment () {
  return request({
    url: '/company/department'
  })
}
// 获取员工简单列表
export function sysUserSimple () {
  return request({
    url: '/sys/user/simple'
  })
}
// 增加部门结构
export function companyDepartmentPost (data) {
  return request({
    url: '/company/department',
    method: 'post',
    data
  })
}
// 删除部门结构
export function companyDepartmentDel (id) {
  return request({
    url: '/company/department/' + id,
    method: 'delete'
  })
}
// 修改部门结构
export function companyDepartmentPut (data) {
  return request({
    url: '/company/department/' + data.id,
    method: 'put',
    data
  })
}
